<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>com.drake.serialize.serialize</title>
<link href="../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../";</script><script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../styles/style.css" rel="Stylesheet"><link href="../../styles/logo-styles.css" rel="Stylesheet"><link href="../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../scripts/main.js" async="async"></script>  </head>
  <body>
    <div id="container">
      <div id="leftColumn"><a href="../../index.html">
          <div id="logo"></div>
        </a>
        <div id="paneSearch"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../scripts/main.js"></script>        <div class="main-content" id="content" pageIds="Serialize::com.drake.serialize.serialize////PointingToDeclaration//1191130368">
          <div class="navigation-wrapper" id="navigation-wrapper">
            <div class="breadcrumbs"><a href="../../index.html">Serialize</a>/<a href="index.html">com.drake.serialize.serialize</a></div>
            <div class="pull-right d-flex">
              <div id="searchBar"></div>
            </div>
          </div>
          <div class="cover ">
            <h1 class="cover"><span>Package com.</span><wbr></wbr><span>drake.</span><wbr></wbr><span>serialize.</span><wbr></wbr><span>serialize</span></h1>
          </div>
          <div class="tabbedcontent">
            <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Functions">Functions</button></div>
            <div class="tabs-section-body">
              <h2 class="">Functions</h2>
              <div class="table" data-togglable="Functions"><a data-name="-710807287%2FFunctions%2F1191130368" anchor-label="decode" id="-710807287%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="decode.html">decode</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-710807287%2FFunctions%2F1191130368"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":serialize:dokkaHtml/release"><div class="symbol monospace">inline fun &lt;<a href="decode.html">T</a>&gt; <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>.<a href="decode.html">decode</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <a href="decode.html">T</a>?<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">inline fun &lt;<a href="decode.html">T</a>&gt; <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>.<a href="decode.html">decode</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, defValue: <a href="decode.html">T</a>): <a href="decode.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
</div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="663142060%2FFunctions%2F1191130368" anchor-label="deserialize" id="663142060%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="deserialize.html">deserialize</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="663142060%2FFunctions%2F1191130368"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":serialize:dokkaHtml/release"><div class="symbol monospace">inline fun &lt;<a href="deserialize.html">T</a>&gt; <a href="deserialize.html">deserialize</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <a href="deserialize.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">inline fun &lt;<a href="deserialize.html">T</a>&gt; <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>?.<a href="deserialize.html">deserialize</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <a href="deserialize.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">inline fun &lt;<a href="deserialize.html">T</a>&gt; <a href="deserialize.html">deserialize</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, defValue: <a href="deserialize.html">T</a>?): <a href="deserialize.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">inline fun &lt;<a href="deserialize.html">T</a>&gt; <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>?.<a href="deserialize.html">deserialize</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, defValue: <a href="deserialize.html">T</a>?): <a href="deserialize.html">T</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
</div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1491726774%2FFunctions%2F1191130368" anchor-label="encode" id="1491726774%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="encode.html">encode</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1491726774%2FFunctions%2F1191130368"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":serialize:dokkaHtml/release"><div class="symbol monospace">fun <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>.<a href="encode.html">encode</a>(name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, obj: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
</div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="974910500%2FFunctions%2F1191130368" anchor-label="serial" id="974910500%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="serial.html">serial</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="974910500%2FFunctions%2F1191130368"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":serialize:dokkaHtml/release"><div class="symbol monospace">inline fun &lt;<a href="serial.html">V</a>&gt; <a href="serial.html">serial</a>(default: <a href="serial.html">V</a>? = null, name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null, kv: <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>? = null): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/-read-write-property/index.html">ReadWriteProperty</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?, <a href="serial.html">V</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="974910500%2FFunctions%2F1191130368" anchor-label="serial" id="974910500%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a><div class="brief "><a data-name="974910500%2FFunctions%2F1191130368" anchor-label="serial" id="974910500%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>自动写入和读取自本地 线程安全</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="465419859%2FFunctions%2F1191130368" anchor-label="serialize" id="465419859%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="serialize.html">serialize</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="465419859%2FFunctions%2F1191130368"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":serialize:dokkaHtml/release"><div class="symbol monospace">fun <a href="serialize.html">serialize</a>(vararg params: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt;)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>?.<a href="serialize.html">serialize</a>(vararg params: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html">Pair</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?&gt;)<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
</div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="158709264%2FFunctions%2F1191130368" anchor-label="serialLazy" id="158709264%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="serial-lazy.html">serialLazy</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="158709264%2FFunctions%2F1191130368"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":serialize:dokkaHtml/release" data-filterable-set=":serialize:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":serialize:dokkaHtml/release"><div class="symbol monospace">inline fun &lt;<a href="serial-lazy.html">V</a>&gt; <a href="serial-lazy.html">serialLazy</a>(default: <a href="serial-lazy.html">V</a>? = null, name: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>? = null, kv: <span data-unresolved-link="com.tencent.mmkv/MMKV///PointingToDeclaration/">MMKV</span>? = null): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/-read-write-property/index.html">ReadWriteProperty</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>?, <a href="serial-lazy.html">V</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="158709264%2FFunctions%2F1191130368" anchor-label="serialLazy" id="158709264%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a><div class="brief "><a data-name="158709264%2FFunctions%2F1191130368" anchor-label="serialLazy" id="158709264%2FFunctions%2F1191130368" data-filterable-set=":serialize:dokkaHtml/release"></a>自动写入和读取自本地 写入即时, 读取属于懒加载形式, 即不会每次读取都读取自本地, 当存在缓存值即返回不存在则读取本地数据 线程安全</div></div>
</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
      </div>
    </div>
  </body>
</html>

